//
//  BaseNavigationController.m
//  Behing
//
//  Created by Lj on 2017/9/27.
//  Copyright © 2017年 lj. All rights reserved.
//

#import "BaseNavigationController.h"

@interface BaseNavigationController ()<UIGestureRecognizerDelegate,UINavigationControllerDelegate>

//记录push标识
@property (nonatomic, getter=isPushing) BOOL pushing;

@end

@implementation BaseNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//    self.interactivePopGestureRecognizer.delegate = self;
    self.delegate = self;
}

//- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
//    if (navigationController.viewControllers.count == 1) {
//        self.interactivePopGestureRecognizer.enabled = false;
//    }
//}

//- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
//    if (self.viewControllers.count > 0) {
//        self.interactivePopGestureRecognizer.enabled = true;
//    }
//    [super pushViewController:viewController animated:true];
//}

//- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
//    if (self.pushing == YES) return;
//    else self.pushing = YES;
//    [super pushViewController:viewController animated:animated];
//}
//
//#pragma mark - UINavigationControllerDelegate
//- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
//    self.pushing = NO;
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
